﻿namespace MyLibrary.API.Data
{
    using System;
    using MyLibrary.API.Core;
    using System.Data.Common;

    public interface IDatabase
    {
        DbDataReader ExecuteReader(string query);
        DbDataReader ExecuteReader(string query, params Param<object>[] Parameters);
        int ExecuteNonQuery(string query);
        int ExecuteNonQuery(string query, params Param<object>[] Parameters);
        object ExecuteScalar(string query);
        object ExecuteScalar(string query, params Param<object>[] Parameters);
    }
}
